export default function(){
    return{
        restrict:"EA",
        templateUrl:"/views/directives/leftMenuDirective.html",
        link:function(scope,element,attr,leftMenu){
            scope.index=-1;
            scope.toggle=(el,index)=>{
                scope.index=(scope.index==index)?-1:index
            }
        }
    }
}